package com.shanyu.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.shanyu.eo.BannerEo;
import com.shanyu.service.IBannerService;

@RestController
@RequestMapping(value = "/banner")
public class BannerController {
	
	@Autowired
	private IBannerService bannerService;
	
	@RequestMapping(value = "/list",method = RequestMethod.GET)
	public List<BannerEo> getBannerList(int type){
		return bannerService.getBannerList(type);
	}

}
